public static void AddCorrespondence(crmCorrespondenceView SelectedCorrespondence) { correspondence newCat = new correspondence(); newCat.correspondence_name = SelectedCorrespondence.Name; newCat.code = SelectedCorrespondence.code; newCat.description = SelectedCorrespondence.description; newCat.category_id = SelectedCorrespondence.category_id; newCat.owner = AppData.CurrentUser.id; newCat.created_at = DateTime.Now; Database.CRM.correspondences.InsertOnSubmit(newCat); Database.CRM.SubmitChanges(); }
partial void Deletecorrespondence(correspondence instance);
partial void Updatecorrespondence(correspondence instance);
partial void Insertcorrespondence(correspondence instance);