public virtual void Copy(ViewObject obj) { Id = obj.Id; Name = obj.Name; IsDeleted = obj.IsDeleted; UserId = obj.UserId; }
public override void Copy(ViewObject obj) { base.Copy(obj); var task = obj as Task; if (task != null) { Category = task.Category; } }
public override void Copy(ViewObject obj) { base.Copy(obj); var cat = obj as Category; if (cat != null) { } }
public override void Copy(ViewObject obj) { base.Copy(obj); var task = obj as PlanningTask; if (task != null) { Task = task.Task; Duration = task.Duration; Frequency = task.Frequency; } }
public override void Copy(ViewObject obj) { base.Copy(obj); var user = obj as User; if (user != null) { Email = user.Email; WeekStartDay = user.WeekStartDay; WeekStartHour = user.WeekStartHour; NotifyWeekStarting = user.NotifyWeekStarting; NotifyWeekEnding = user.NotifyWeekEnding; } }