public ActionResult Index(bool?notificationFlag = null, bool regularView = false) { OfficeModel officeModel = new OfficeModel(); officeModel.User = _userWrapper; officeModel.Offices = _officeLocationFacade.GetAll().Select(x => new WebOffice(x)).ToArray(); officeModel.Countries = _officeLocationFacade.GetAllCountries(); officeModel.NewOffice = new WebOffice(); officeModel.OperatingOptions = WebHelper.GenerateOperatingOptions(); officeModel.NotificationFlag = notificationFlag; officeModel.RegularView = regularView; return(View(officeModel)); }
public HttpResponseMessage GetOffices() { return(Request.CreateResponse(_officeLocationFacade.GetAll())); }