常用方法
常用方法
常用方法
常用方法
public async Task <Result <bool> > DeleteBugTicket(int id) { var superAdmin = _referenceData.AdminRoles.Single(x => x.Key == (int)RoleType.SuperAdminUser).Text; var isSuperAdmin = HttpContext.User.IsInRole(superAdmin.Normalize()); return(await _helpService.DeleteBugTicketAsync(id, Int32.Parse(_userManager.GetUserId(User)), isSuperAdmin?(int?)null : Int32.Parse(_userManager.GetUserId(User)))); }