public JsonResult GetContractsFileModel() { var filtrCriteria = new AccountFilterCriteria <Contracts> (); filtrCriteria.AddCriterion(new Criterion() { Attribute = "DEV.CODE", Filter = "6600" }); filtrCriteria.AddCriterion(new Criterion() { Attribute = "PROJ.CODE", Filter = "6606" }); filtrCriteria.AddCriterion(new Criterion() { Attribute = "LEND.CODE", Filter = "100" }); filtrCriteria.AddCriterion(new Criterion() { Attribute = "AC", Filter = "N" }); var credentials = new CssCredentials(); var model = new ContractsFilterCallModel() { Credentials = credentials, FilterCriteria = filtrCriteria }; return(new JsonResult(model)); }
public ActionResult <MaintFilterCallModel> GetMaintFileModel() { var filtrCriteria = new AccountFilterCriteria <Maint>(); filtrCriteria.AddCriterion(new Criterion() { Attribute = "DEV.CODE", Filter = "1075" }); var credentials = new CssCredentials(); var model = new MaintFilterCallModel() { Credentials = credentials, FilterCriteria = filtrCriteria }; return(model); }