[HttpGet]
public ActionResult GetCustomerById(string account)
{
int id;
if(int.TryParse(account, out id))
{
Searchable find = new Searchable(ConfigurationManager.ConnectionStrings["BCCP"].ConnectionString);
if(find.ValidateAccount(id))
{
(new Storage()).SessionAdd("Account", id.ToString());
return View("Invoice");
}
}
return WithException(this.RedirectToAction("Index"), "Unable to locate the following Cus…