public HttpResponseMessage AddICF(HttpRequestMessage request, [FromBody] ICF icf) { return(Execute(request, () => { _ICFService.AddICF(icf); return request.CreateResponse(HttpStatusCode.OK); })); }
public static void AddRow(DataRow dr) { ICF obj = new ICF(); obj.Flag = Convert.ToInt32(dr["Flag"]); obj.ClaimID = dr["ClaimID"].ToString(); obj.RyotNumber = dr["RyotNumber"].ToString(); obj.SeasonCode = dr["SeasonCode"].ToString(); obj.PlotNumber = dr["PlotNumber"].ToString(); obj.RyotNumber = dr["RyotNumber"].ToString(); obj.RyotName = dr["RyotName"].ToString(); obj.ClaimDate = dr["ClaimDate"].ToString(); obj.ClaimFormNo = dr["ClaimFormNo"].ToString(); obj.ClaimArea = dr["ClaimArea"].ToString(); obj.ClaimAmount = dr["ClaimAmount"].ToString(); obj.ClaimReason = dr["ClaimReason"].ToString(); obj.SurveyorID = dr["SurveyorID"].ToString(); obj.SurveyorDate = dr["SurveyorDate"].ToString(); obj.InsuranceAmount = dr["InsuranceAmount"].ToString(); icfList.Add(obj); }
public void EditICF(ICF icf) { _repository.Edit(icf); _uow.Commit(); }
public void AddICF(ICF icf) { _repository.Add(icf); _uow.Commit(); }