public ActionResult SendVideo(int id, string videoId) { using (dTharapyDBEntities db = new dTharapyDBEntities()) { tbl_Messages msg = new tbl_Messages(); msg.PatientsIDFK = id; msg.message = videoId; msg.IsVideo = true; db.tbl_Messages.Add(msg); db.SaveChanges(); return(null); } }
public ActionResult SavePatient(string name, string t_name, string user_name, string password) { using (dTharapyDBEntities db = new dTharapyDBEntities()) { tbl_Patients tbP = new tbl_Patients(); tbP.Name = name; tbP.t_Name = t_name; tbP.p_Completed = "0%"; tbP.user_name = user_name; tbP.password = password; db.tbl_Patients.Add(tbP); db.SaveChanges(); return(null); } }