我有一个在线发布的项目,但我没有它的原始源代码,所以我使用dotpeek反编译来获取源代码,但我没有得到正确的源代码。源代码有一些错误,所以我怎么能转换反编译源代码以纠正源代码。我有一个例子,它显示了一些错误。
public HttpResponseMessage IndexAction()
{
try
{
return this.Request.CreateResponse<IQueryable<<>f__AnonymousType17<ICollection<ContactPersonMaster>, long, string, string, BranchMaster, CompanyMaster, ClientMaster, DateTime?, DateTime?, long, long?, string, string, long, string, string, string, string, string>>>(HttpStatusCode.OK, this.db.ProjectMasters.Select(s => new
{
ContactPersonMasters = s.ContactPersonMasters,
ProjectId = s.ProjectId,
ProjectName = s.ProjectName,
Description = s.Description,
BranchMaster = s.BranchMaster,
CompanyMaster = s.CompanyMaster,
ClientMaster = s.ClientMaster,
StartDate = s.StartDate,
EndDate = s.EndDate,
Cost = s.Cost,
tonnage = s.tonnage,
FileNo = s.FileNo,
FileName = s.FileName,
TotalHours = s.TotalHours,
ShelfDetail = s.ShelfDetail,
RoomNo = s.RoomNo,
WardRobe = s.WardRobe,
DrawerNo = s.DrawerNo,
Status = s.Status
}));
}
catch (Exception ex)
{
this.logger.Error((object) "An error happened on Project master API index!", ex);
if (WebApiApplication.IsShowError)
return this.Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex);
return this.Request.CreateErrorResponse(HttpStatusCode.InternalServerError, "");
}
}
请帮助