public ActionResult CalendarPrint(long scheduleId) { var viewModel = new CalendarPrintViewModel(); var dataRow = CRCDataAccess.GetSchedule(scheduleId, CRCUser.UserId); dataRow.MapTo(viewModel); return(View(viewModel)); }
public ActionResult Calendar(long scheduleId) { var viewModel = new CalendarViewModel(); var dataRow = CRCDataAccess.GetSchedule(scheduleId, CRCUser.UserId); dataRow.MapTo(viewModel); //if(CRCUser.IsInRole(CRCUserRoles.CRCManager)) viewModel.ReadOnly = false; return(View(viewModel)); }