public async Task <ActionResult> ContragentRegistration([FromBody] InviteRequest request,
                                                                [FromServices] IInviteService inviteService)
        {
            var codeAndEmail = request.InviteClientRequest.Xin + ">" + HttpContext.User.Identity.Name;
            var code         = inviteService.GenerateCode(codeAndEmail);
            var callbackUrl  = Url.Action("GetInformationByInviteCode",
                                          "Registration",
                                          new { email = request.InviteClientRequest.Email, code },
                                          protocol: HttpContext.Request.Scheme);

            callbackUrl = callbackUrl.Replace("api/Registration/GetInformationByInviteCode", "auth/registration");
            var response = await inviteService.RegisterContrager(request, callbackUrl, User.Identity.Name);

            return(Json(ApiResponse.Success(response)));
        }