public bool AddNewRule(string Title, int Value, int Days) { CancellationFareDetail cfd = new CancellationFareDetail { CFD_TITLE = Title, CFD_VALUE = Value, CFD_DAY_BEFORE_RUN = Days }; db.CancellationFareDetails.InsertOnSubmit(cfd); try{ db.SubmitChanges(); return true; }catch(Exception ex){ return false; } }
partial void DeleteCancellationFareDetail(CancellationFareDetail instance);
partial void UpdateCancellationFareDetail(CancellationFareDetail instance);
partial void InsertCancellationFareDetail(CancellationFareDetail instance);