public string insert(Film_Day_Session t) { try { if (!string.IsNullOrWhiteSpace(t.Session_ID.ToString()) && !string.IsNullOrWhiteSpace(t.Film_ID.ToString()) && !string.IsNullOrWhiteSpace(t.Session_Date.ToString())) { DB.Film_Day_Session.Add(t); if (DB.SaveChanges() > 0) { return("Insert succesful"); } return("Insert failed"); } return("Insert failed"); } catch (Exception msg) { throw new Exception("Insert failed"); } }
public string update(Film_Day_Session t) { throw new NotImplementedException(); }