コード例 #1
0
 public HttpResponseMessage Get(string username, string password)
 {
     if (tokenManager.CheckUser(username, password))
     {
         return(Request.CreateResponse(HttpStatusCode.OK, JwtManager.GenerateToken(username)));
     }
     else
     {
         return(Request.CreateErrorResponse(HttpStatusCode.Unauthorized, "There are no employee match the login value!!!"));
     }
 }