public async Task <ActionResult <ResponseDto> > Create(AddContactRequestDto request) { var identity = User.Identity as ClaimsIdentity; request.UserId = long.Parse(identity.FindFirst(ClaimTypes.NameIdentifier).Value); var result = await _contactCommand.Add(request); return(!result.Successful ? NotFound(result) : (ActionResult)Ok(result)); }