Exemple #1
0
        public async Task <JsonResult> GetGrainTypes(string priceAreaId, string productItemId)
        {
            var supplier = UserManager.GetActiveCustomer(HttpContext);

            if (SiteUser == null || supplier == null)
            {
                return(Json(new {}, JsonRequestBehavior.AllowGet));
            }
            var grainType = await _agreementRepository.GetGrainTypesPoolAgreementAsync(priceAreaId, productItemId);

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