Exemplo n.º 1
0
        public HttpResponseMessage Get(string securityToken)
        {
            var response = new DepartmentResponse {
                Status = "OK"
            };

            if (IsValid(securityToken))
            {
                var svc = new StaffService(this._dbContext);
                response.Departments = svc.GetDepartment();
            }
            return(Request.CreateResponse(HttpStatusCode.OK, response));
        }