public String Insert(String Title, String Description) { TrainTypeDetail ttd = new TrainTypeDetail { TTD_TITLE = Title, TTD_DESCRIPTION = Description }; dc.TrainTypeDetails.InsertOnSubmit(ttd); try{ dc.SubmitChanges(); return ""; }catch(Exception ex){ return ex.Message; } }
partial void DeleteTrainTypeDetail(TrainTypeDetail instance);
partial void UpdateTrainTypeDetail(TrainTypeDetail instance);
partial void InsertTrainTypeDetail(TrainTypeDetail instance);