Exemplo n.º 1
0
        public IActionResult Login([FromBody] LoginModel model)
        {
            try
            {
                string token = _membershipManager.SignIn(model.Email, model.Password);

                _membershipManager.Accept(new OrdinoApprove());

                _membershipManager.UserQuery().AsNoTracking();



                return(Ok(token));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }