Пример #1
0
        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));
        }
Пример #2
0
 public HttpResponseMessage GetOffices()
 {
     return(Request.CreateResponse(_officeLocationFacade.GetAll()));
 }