public ActionResult Crud(CView model)
 {
     var oldNumber = (long) (Session[LastNumberDisplayed] ?? 0);
     CustomerCRUDService cv = _r.Get<CustomerCRUDServiceBuilder>().GetInstance(model, oldNumber);
     _r.Get<IUnitOfWork>().Perform(cv.Process);
     //UnitOfWork.Instance.Perform(() => new CustomerCRUDService(model, oldNumber, new CustomerRepository(UnitOfWork.Instance)).Process());
     Session[LastNumberDisplayed] = model.Number;
     return View(model);
 }
 public CustomerCRUDService(CView c, long oldNumber, ICustomerRepository dbOps)
 {
     _dbOps = dbOps;
     _c = c;
     _oldNumber = oldNumber;
 }
 public CustomerCRUDService GetInstance(CView c, long oldNumber)
 {
         return new CustomerCRUDService(c, oldNumber, dbOps);
 }