Пример #1
0
        public IActionResult LoginService([FromBody] Autentication autentication)
        {
            Customer customer = customerdata.GetCustomerByNameAndPassword(autentication.username, autentication.password);

            if (customer == null)
            {
                return(NotFound("Autentication failed"));
            }
            return(Ok(customer));
        }