public ActionResult GetListObjects() { try { var genericObject = new StockGenericObject { CustomerTypes = new StoreCustomerTypeServices().GetStoreCustomerTypes() ?? new List <StoreCustomerTypeObject>(), PaymentMethods = new StorePaymentMethodServices().GetStorePaymentMethods() ?? new List <StorePaymentMethodObject>() //Customers = new SaleServices().GetCustomers() }; return(Json(genericObject, JsonRequestBehavior.AllowGet)); } catch (Exception) { return(Json(new StockGenericObject(), JsonRequestBehavior.AllowGet)); } }
public ActionResult GetListObjects() { try { var genericObject = new StockGenericObject { Inventories = GetStoreItemStocks(), UnitsofMeasurement = GetUnitsofMeasurement() //StoreCurrencies = GetCurrencies() }; return(Json(genericObject, JsonRequestBehavior.AllowGet)); } catch (Exception) { return(Json(new StockGenericObject(), JsonRequestBehavior.AllowGet)); } }