public async Task <IActionResult> CreateOrUpdateCategoryAsync(Categories entity) { return(Content(JsonConvert.SerializeObject(await service.CreateOrUpdateCatergoryAsync(entity)), "application/json", Encoding.UTF8)); }