public async Task <SQLCategories> UpdateCategories(SQLCategories categories, int id)
        {
            return(await _sqlunitOfWork.SQLCategoriesRepository.Update(categories, id));

            //await Complete();
        }
 public async Task Put([FromBody] SQLCategories categories, int id)
 {
     await _sqlCategoriesService.UpdateCategories(categories, id);
 }
 public async Task <SQLCategories> AddCategories(SQLCategories categories)
 {
     return(await _sqlunitOfWork.SQLCategoriesRepository.Add(categories));
 }
 public async Task Post([FromBody] SQLCategories categories)
 {
     await _sqlCategoriesService.AddCategories(categories);
 }