コード例 #1
0
        public async Task <Response> RegisterShoppingUser(ShoppingUser detail)
        {
            var data = JsonConvert.SerializeObject(detail);

            var result = await CallPostFunction(data, RegisterShoppingUserAction);

            return(result);
        }
コード例 #2
0
 public ShoppingUserModel GetUserModelFromDbData(ShoppingUser dbUser)
 {
     return(new ShoppingUserModel
     {
         Id = dbUser.Id,
         Email = dbUser.Email,
         UserName = dbUser.UserName,
         Settings = new ShoppingUserSettingsModel
         {
             FirstName = dbUser.FirstName,
             LastName = dbUser.LastName,
             StandardUserGroupId = dbUser.StandardUserGroupId
         }
     });
 }