public ActionResult GetModel() { ContractsMassViewModel cmvm = new ContractsMassViewModel(); cmvm.IsEmpty(); return(Ok(cmvm)); }
public ActionResult GetContracts([FromBody] ContractsMassViewModel model) { var flt = new FiltratorContractListMass(model); flt.GetContractList(); if (!flt.model.isExistError) { return(Ok(cmm.GetContractMassListToJSON(flt))); } else { return(BadRequest(flt.model.msg)); } }