public ActionResult SaveInfo(String selActividad, String txtCantidadEjecutada, String txtValorEjecutado, String selEntidadAportante, String txtRecordId) { try { AporteEspecieDTO objDTO = new AporteEspecieDTO(selActividad, txtCantidadEjecutada, txtValorEjecutado, selEntidadAportante, (txtRecordId.Equals("") ? "0" : txtRecordId)); IList<String> info = ContractService.SaveInfo(objDTO, Session["USER_ID"].ToString()); return Json(new { d = info }); } catch { return Json(new { d = "KO" }); } }
public ActionResult ListInfo(String txtPage, String selActividadFilter, String selEntidadAportanteFilter) { try { String pryId = Session["pry"].ToString(); AporteEspecieDTO dto = new AporteEspecieDTO(); AporteEspecieDTO objDTO = new AporteEspecieDTO(selActividadFilter, selEntidadAportanteFilter, pryId); IList<String> info = ContractService.ListInfo(txtPage, objDTO); return Json(new { d = info }); } catch { return Json(new { d = "KO" }); } }