Exemplo n.º 1
0
        public static StackholderInfoModel Map(this StackholderCreateViewModel model)
        {
            if (model == null)
            {
                return(null);
            }

            return(new StackholderInfoModel
            {
                Date_Of_Registration = model.Date_Of_Registration,
                Stackholder_ID = model.Stackholder_ID,
                Email = model.Email,
                Address = model.Address,
                Country = model.Country,
                Sackholder_Name = model.Sackholder_Name,
                UserId = model.UserId
            });
        }
Exemplo n.º 2
0
 public IActionResult OnGet()
 {
     stackholderInfo = new StackholderCreateViewModel();
     return(Page());
 }