public ActionResult Create() { VMCreateB vmCreateB = new VMCreateB(); vmCreateB.Username = "******"; vmCreateB.Email = "*****@*****.**"; vmCreateB.Birth = "18/07/1977"; return(View(vmCreateB)); }
public ActionResult Create(VMCreateB vmCreateB) { if (ModelState.IsValid) { try { // mapping visual model to DTO DTOModelB dtoModelB = new DTOModelB(); //ABaseController_WebStoreInstance.WebStore_CoreSupplierInstance.GetFeatureB.CreatePost(vmCreateB); } catch (Exception exception) { throw new HttpException(500, exception.Message, exception); } } return(RedirectToAction("List")); }