コード例 #1
0
 public ActionResult CreateRestaurant(company_info model)
 {
     GrubDBDataContext GrubDB = new GrubDBDataContext();
     model.username = User.Identity.Name.Replace("@rose-hulman.edu","");
     GrubDB.create_company_info(model.delivery, model.location, model.name, model.orders, model.owner_first, model.owner_last, model.phone_number, model.point_of_contact_email, model.point_of_contact_phone, model.payment_status, model.username);
     return RedirectToAction("Index", "Home");
 }