public IActionResult Get(Customers customer) { using (var context = new CustomerProductDbContext()) { int i = d.loginCustomer(customer); if (i == 0) { return(Ok("Login Failed")); } else { return(Ok(customer.CustomerNumber)); } } }
public IActionResult Get(Customers customer) { using (var context = new CustomerProductDbContext()) { int i = d.loginCustomer(customer); if (i == 0) { return(Ok("Login Failed")); } else { return(Ok(customer.CustomerNumber)); } } }