public bool Login()
 {
     if (client.Login(LoginName, LoginPassword))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
 public async Task <ActionResult> Login([FromBody] ClientLogin user)
 {
     try
     {
         return(StatusCode(200, await _clientLogin.Login(user, new Authentication())));
     }
     catch (UserNotFound err)
     {
         return(StatusCode(401, new {
             Message = err.Message
         }));
     }
 }