コード例 #1
0
        public JsonResult GetContractData(string contractNumber)
        {
            ApplicationPoaRepository repository = new ApplicationPoaRepository();

            var contractObj = repository.GetI1cLimsContracts(c => c.ContractNumber == contractNumber).FirstOrDefault();

            return(Json(contractObj, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        public JsonResult GetContractNumbers(string text)
        {
            ApplicationPoaRepository repository = new ApplicationPoaRepository();

            var listContractNumers = repository.GetI1cLimsContracts(c => c.ContractNumber.Contains(text)).ToList();

            return(Json(listContractNumers, JsonRequestBehavior.AllowGet));
        }