public ActionResult AddServices( int? id, string fn, string ln, int? roomNo ) { if (id == null) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } Services tasks = new Services(); tasks.PatientID = id.ToString(); tasks.ClientFirstName = fn.ToString(); tasks.ClientLastName = ln.ToString(); tasks.RoomNo = ""; tasks.Task = ""; tasks.duration = 0; tasks.freq = ""; tasks.count = 0; tasks.interval = 0; tasks.byDay = ""; tasks.byMonthDay = 0; tasks.dtStart = DateTime.Today; tasks.dtEnd = null; return View(tasks); }
public ClientDetail(int id, ClientDBContext cdb, ServicesDBContext sdb) { client = cdb.Client.Find(id); services = sdb.Services.Find(id); }