public IActionResult DeleteById(int id) { var foundType = _mediaTypeService.Get(id); if (foundType == null) { return(NotFound()); } _mediaTypeService.Delete(foundType, _backofficeSecurityAccessor.BackOfficeSecurity.CurrentUser.Id); return(Ok()); }
public async Task <IResultModel> Delete([BindRequired] int id) { return(await _service.Delete(id)); }
public Task <IResultModel> Delete([BindRequired] string id) { return(_service.Delete(id)); }