public async Task <bool> DeleteIssueTypeAsync(Guid issueTypeId) { var issueType = new IssueType { Id = issueTypeId }; _issueTypeRepository.Delete(issueType); var deleted = await _issueTypeRepository.SaveAsync().ConfigureAwait(false); return(deleted > 0); }
public JsonResult Delete(int id) { _issueTypeRepository.Delete(id); return(Json("0")); }