示例#1
0
        public HttpResponseMessage CheckFirstLogin()
        {
            var context = _contextService.GetContext();
            var result  = false;

            if (context.User.Role == enRole.Operator || context.User.Role == enRole.HeadWorkshop)
            {
                result = _loginServices.IsFirstLogin();
            }

            return(Request.CreateResponse(HttpStatusCode.OK, result, MediaTypeHeaderValue.Parse("application/json")));
        }