public int Create(Calendar cal, User user) { log.LogStart(); SERVDataContract.DbLinq.Calendar c = new SERVDataContract.DbLinq.Calendar(); UpdatePolicyAttribute.MapPropertiesWithUpdatePolicy(cal, c, user, false); return(SERVDALFactory.Factory.CalendarDAL().Create(c)); }
public Calendar Get(int calendarId) { using (ICalendarDAL dal = SERVDALFactory.Factory.CalendarDAL()) { SERVDataContract.DbLinq.Calendar lret = dal.Get(calendarId); Calendar ret = new Calendar(lret); return(ret); } }
public Calendar(SERVDataContract.DbLinq.Calendar metal) { PropertyMapper.MapProperties(metal, this); this.SimpleCalendar = metal.SimpleCalendar == 1; this.VolunteerRemainsFree = metal.VolunteerRemainsFree == 1; }