public ActionResult Create(ViewSeller vseller) { if (ModelState.IsValid) { SellerAddress address = new SellerAddress(); address.Area = areaRepo.Get(vseller.Area); address.City = cityRepo.Get(vseller.City); address.ShopName = vseller.ShopName; SellerLogin login = new SellerLogin(); login.Username = vseller.Username; login.Password = vseller.Password; SellerApproval approval = new SellerApproval(); approval.Status = false; Seller seller = new Seller(); seller.FirstName = vseller.FirstName; seller.LastName = vseller.LastName; seller.Email = vseller.Email; seller.Phone = vseller.Phone; seller.Gender = vseller.Gender; seller.Address = address; seller.LoginData = login; seller.Approval = approval; sellerRepo.Insert(seller); return(RedirectToAction("Index", "Home")); } return(View(vseller)); }