public Boolean Post([FromBody] Login login) { if (__AdministerDataProvider.LoginAdmin(login)) { return(true); } return(false); }
public IActionResult Post([FromBody] Login login) { result = __AdministerDataProvider.LoginAdmin(login); if (result == null) { return(new BadRequestResult()); } String token = (BuildToken(result)); return(new OkObjectResult(new { token = token })); }