public JsonResult GetContractData(string contractNumber) { ApplicationPoaRepository repository = new ApplicationPoaRepository(); var contractObj = repository.GetI1cLimsContracts(c => c.ContractNumber == contractNumber).FirstOrDefault(); return(Json(contractObj, JsonRequestBehavior.AllowGet)); }
public JsonResult GetContractNumbers(string text) { ApplicationPoaRepository repository = new ApplicationPoaRepository(); var listContractNumers = repository.GetI1cLimsContracts(c => c.ContractNumber.Contains(text)).ToList(); return(Json(listContractNumers, JsonRequestBehavior.AllowGet)); }