public async Task <IActionResult> Delete(int sermonSeriesId) { var output = await _sermonCategoryService.DeleteResourceCategory(sermonSeriesId); if (output.IsErrorOccured) { return(BadRequest()); } else { return(Ok(output)); } }
public async Task <IActionResult> DeleteResourceCategory(int id) { var result = await _resourceCategoryService.DeleteResourceCategory(id); return(result.ToJsonResult()); }