示例#1
0
        public async Task <IActionResult> Save([FromBody] EDeliveryProductCategory eCategory)
        {
            string id = await SDeliveryProductsCategories.Save(eCategory);

            return(Ok(id));
        }
示例#2
0
        public async Task <IActionResult> Remove(string id)
        {
            var ok = await SDeliveryProductsCategories.Remove(id);

            return(Ok(ok));
        }
示例#3
0
        public IActionResult GetCount(string companyID)
        {
            Int64 totalListCount = SDeliveryProductsCategories.GetCount(companyID);

            return(Ok(totalListCount));
        }
示例#4
0
        public async Task <IActionResult> GetByID(string id)
        {
            EDeliveryProductCategory eDeliveryProduct = await SDeliveryProductsCategories.GetByID(id);

            return(Ok(eDeliveryProduct));
        }
示例#5
0
        public IActionResult GetAll(string companyID, int listCount = -1, int pageNumber = 0, string orderBy = "position asc")
        {
            var list = SDeliveryProductsCategories.GetAll(companyID, listCount, pageNumber, orderBy);

            return(Ok(list));
        }