public async Task <CategoryView> AddCategory([FromBody] CategoryRequestView requestView) { var category = await _dashboardService.AddCategory( requestView.category.Title, requestView.category.Description, requestView.userId); return(category); }
public async Task <string> EditCategory([FromBody] CategoryRequestView requestView) { await _dashboardService.EditCategory( requestView.category.Id, requestView.category.Title, requestView.category.Description, requestView.userId); return(""); }