/// <summary> /// DeleteCategory /// </summary> /// <param name="request">DeleteCategoryRequest</param> /// <returns>bool</returns> public async Task <bool> DeleteCategory(DeleteCategoryRequest request) { bool result = false; try { var param = new DeleteCategoryParameter() { id = request.id }; _dataAccess.DeleteCategory(param); result = true; return(await Task.FromResult(result)); } catch (Exception) { result = false; return(await Task.FromResult(result)); } }
/// <summary> /// /// </summary> /// <param name="Id"></param> /// <returns></returns> public string DeleteCategory(int Id) { string result = _CategoryDataAccess.DeleteCategory(Id); return(result); }