コード例 #1
0
 public IHttpActionResult PostAuthentication([FromBody] Input obj)
 {
     try
     {
         SpecialistManager manager = new SpecialistManager();
         Specialist        result  = manager.Authentication(obj);
         if (result != null)
         {
             return(Ok(result));
         }
         else
         {
             return(Unauthorized());
         }
     }catch (Exception e) {
         return(NotFound());
     }
 }