public void SetEntity(CalendarEntity Entity) { this.Title = Entity.Title; this.Type = Entity.Type; this.StartTime = Entity.StartTime; this.EndTime = Entity.EndTime; }
public void Update(int ID, CalendarEntity Calendar) { var entity = this._DB.Get(ID); entity.SetEntity(Calendar); this._DB.Edit(entity); }
public CalendarInfo(CalendarEntity Entity) { this.ID = Entity.ID; this.Title = Entity.Title; this.Type = Entity.Type; this.UserID = Entity.UserID; this.StartTime = Entity.StartTime; this.EndTime = Entity.EndTime; this.CreateUser = Entity.CreateUser; this.CreateDate = Entity.CreateDate; this.IsDelete = Entity.IsDelete; }
public int Add(CalendarInfo Calendar) { var entity = new CalendarEntity(Calendar); entity.IsDelete = false; entity.CreateDate = DateTime.Now; this._DB.Add(entity); //foreach (var attachID in Calendar.AttachIDs) //{ // AddAttach(entity.ID, attachID); //} return(entity.ID); }
public void Update(int ID, CalendarEntity Entity) { this._ICalendarService.Update(ID, Entity); }