Exemple #1
0
        public HttpResponseMessage SearchLabNames(string officeNumber, string labName = null, bool mappedOnly = false, string state = null)
        {
            IList <LabSetupSearchResults> results;

            try
            {
                AccessControl.VerifyUserAccessToMultiLocationOffice(officeNumber);
                results = LabSetupManager.SearchLabNames(labName, officeNumber, state, mappedOnly);
            }
            catch (Exception ex)
            {
                string msg = "Search Lab Setup error: " + "\n" + ex;
                return(HandleExceptions.LogExceptions(msg, Logger, ex));
            }

            return(this.Request.CreateResponse(HttpStatusCode.OK, results));
        }
Exemple #2
0
 public LabSetupController()
 {
     this.labsManager    = new LabSetupManager();
     this.labsIt2Manager = new LabsIt2Manager();
 }
Exemple #3
0
 public LabSetupController(LabSetupManager labsManager, LabsIt2Manager labsIt2Manager)
 {
     this.labsManager    = labsManager;
     this.labsIt2Manager = labsIt2Manager;
 }