示例#1
0
        public async Task <IActionResult> Delete(int sermonSeriesId)
        {
            var output = await _sermonCategoryService.DeleteResourceCategory(sermonSeriesId);

            if (output.IsErrorOccured)
            {
                return(BadRequest());
            }
            else
            {
                return(Ok(output));
            }
        }
示例#2
0
        public async Task <IActionResult> DeleteResourceCategory(int id)
        {
            var result = await _resourceCategoryService.DeleteResourceCategory(id);

            return(result.ToJsonResult());
        }