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 }); }
public IActionResult OnGet() { stackholderInfo = new StackholderCreateViewModel(); return(Page()); }