public async Task <IActionResult> GetMemberDetails(Guid TokenGuid)
        {
            JsonResponse <BulkCreatedUsers> objResult = new JsonResponse <BulkCreatedUsers>();

            try
            {
                BulkCreatedUsers bulkCreated = await this.authService.GetMemberDetails(TokenGuid);

                if (bulkCreated != null)
                {
                    objResult.Data    = bulkCreated;
                    objResult.Status  = StaticResource.SuccessStatusCode;
                    objResult.Message = StaticResource.SuccessMessage;
                    return(new OkObjectResult(objResult));
                }
                else
                {
                    objResult.Data    = null;
                    objResult.Status  = StaticResource.FailStatusCode;
                    objResult.Message = StaticResource.FailMessage;
                    return(new OkObjectResult(objResult));
                }
            }
            catch (Exception ex)
            {
                HttpContext.RiseError(ex);
                objResult.Data    = null;
                objResult.Status  = StaticResource.FailStatusCode;
                objResult.Message = StaticResource.FailMessage;
            }
            return(new OkObjectResult(objResult));
        }
 public async Task <BulkCreatedUsers> GetMemberDetails(Guid guid)
 {
     try
     {
         BulkCreatedUsers createdUsers = new BulkCreatedUsers();
         using (IDbConnection con = new SqlConnection(_connectionString))
         {
             createdUsers = await con.QueryFirstOrDefaultAsync <BulkCreatedUsers>("dbo.SSP_getInvitedUserDetails", new
             {
                 TokenGuid = guid
             }, commandType : CommandType.StoredProcedure);
         }
         return(createdUsers);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }