This commit is contained in:
2020-06-08 23:42:40 +00:00
parent 4e13b3c9bb
commit 937e9c5907
18 changed files with 119 additions and 83 deletions

View File

@@ -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