public void Insert(int ProjectID, string Name, string Description, DateTime?StartDate, DateTime?ExpEndDate, DateTime?ActEndDate) { ModuleX item = new ModuleX(); item.ProjectID = ProjectID; item.Name = Name; item.Description = Description; item.StartDate = StartDate; item.ExpEndDate = ExpEndDate; item.ActEndDate = ActEndDate; item.Save(UserName); }
public void Update(int Id, int ProjectID, string Name, string Description, DateTime?StartDate, DateTime?ExpEndDate, DateTime?ActEndDate) { ModuleX item = new ModuleX(); item.MarkOld(); item.IsLoaded = true; item.Id = Id; item.ProjectID = ProjectID; item.Name = Name; item.Description = Description; item.StartDate = StartDate; item.ExpEndDate = ExpEndDate; item.ActEndDate = ActEndDate; item.Save(UserName); }