public ActionResult Search(SEC002P001Model model) { var da = new SEC002P001DA(); SetStandardErrorLog(da.DTO); da.DTO.Execute.ExecuteType = SEC002P001ExecuteType.GetAll; if (Request.GetRequest("page").IsNullOrEmpty()) { model.IsDefaultSearch = true; TempSearch = model; } da.DTO.Model = TempSearch; da.Select(da.DTO); return(JsonAllowGet(da.DTO.Models, da.DTO.Result)); }
public ActionResult Info(decimal?TITLE_ID) { SetDefaulButton(StandardButtonMode.View); var da = new SEC002P001DA(); SetStandardErrorLog(da.DTO); da.DTO.Execute.ExecuteType = SEC002P001ExecuteType.GetByID; TempModel.TITLE_ID = da.DTO.Model.TITLE_ID = TITLE_ID; da.Select(da.DTO); if (da.DTO.Model != null) { localModel = da.DTO.Model; } return(View(StandardActionName.Info, localModel)); }