コード例 #1
0
        public IActionResult GetUser(string loginId, string password)
        {
            var status = inventoryContext.GetLoginUser(loginId, password);

            if (status.Equals("Success"))
            {
                return(Ok(JsonConvert.SerializeObject("Login Successful")));
            }
            else
            {
                return(NotFound("User Not Found. Please enter correct credentials"));
            }
        }