This commit is contained in:
@@ -50,6 +50,32 @@ namespace rockfishCore.Controllers
|
||||
}
|
||||
|
||||
|
||||
// //Get api/customer/list
|
||||
// [HttpGet("list")]
|
||||
// public ActionResult GetList()
|
||||
// {
|
||||
|
||||
// var res = from c in _context.Customer.OrderBy(c => c.Name)
|
||||
// select new dtoCustomerListItem
|
||||
// {
|
||||
// lapsed = false,
|
||||
// active = c.Active,
|
||||
// id = c.Id,
|
||||
// name = c.Name
|
||||
// };
|
||||
|
||||
// //Need to be made into a list before updating or else the changes would be lost
|
||||
// //The tolist is what triggers the actual query to run
|
||||
// var LapsedRes = res.ToList();
|
||||
// foreach (dtoCustomerListItem i in LapsedRes)
|
||||
// {
|
||||
// i.lapsed = CustomerHasLapsed(i.id);
|
||||
// }
|
||||
|
||||
// return Ok(LapsedRes);
|
||||
// }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Check if a customer has any active subs
|
||||
/// return true if no active subs
|
||||
|
||||
Reference in New Issue
Block a user