Основные методы
Основные методы
Основные методы
Основные методы
public ActionResult CreateRoom(FormCollection collection) { string roomname = collection["roomName"]; int capacity = Int32.Parse(collection["capacity"]); Room r = new Room(); r.Room_Name = roomname; r.Room_Capacity = capacity; db.CreateRoom(r); return(RedirectToAction("RoomList")); }