public static RESERVED insert_res(int room_id, string s_date, string e_date) { RESERVED a; using(bookingEntities db = new bookingEntities()) { a = new RESERVED(); a.ROOMID = room_id; a.USERID = 3; a.START_DATE = s_date; a.END_DATE = e_date; db.RESERVEDs.Add(a); db.SaveChanges(); } return a; }
date
DateTime
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)