public async Task <IActionResult> AddLocation(Location location) { location = _organizationService.AddLocation(location); var identity = (ClaimsIdentity)User.Identity; await _auditLog.Append(identity.GetClaimAsInt("EmployeeId"), LogActionType.Create, LogResourceType.Location, location.LocationId, $"{identity.GetClaim(ClaimTypes.Name)} created location with id {location.LocationId}"); return(RedirectToAction(nameof(ViewLocation), new { id = location.LocationId })); }