public ActionResult Customer_Delete(Customers customer)
        {
            if(ModelState.IsValid)
            {
                if (_businessTechSolutionsRepository.Customer_Delete(customer))
                {
                    return RedirectToAction("Index", "AdminPage");
                }

            }
            return View();
        }
        public ActionResult Customer_Create(Customers customer)
        {
            if (ModelState.IsValid)
            {
                //var userId = User.Identity.GetUserId();
                //timeEntry.pay_rate = _timeEntriesRepository.Get_Rate(userId).Pay_Rate;
                if (_businessTechSolutionsRepository.Customer_CreateCustomer(customer))
                {
                    return RedirectToAction("Index", "AdminPage");
                }

            }
            return View();
        }
 public bool Customer_CreateCustomer(Customers customer)
 {
     var p = new DynamicParameters();
     p.Add("CustomerName", customer.CustomerName);
     p.Add("CustomerContactPerson", customer.CustomerContactPerson);
     p.Add("CustomerAddress", customer.CustomerAddress);
     p.Add("CustomerEmail", customer.CustomerEmail);
     p.Add("CustomerPhone", customer.CustomerPhone);
     p.Add("InsertedBy", customer.InsertedBy);
     return _dbConnection.Connection.Execute("Customer_Insert", p, commandType: CommandType.StoredProcedure) > 0;
 }
 public bool Customer_Delete(Customers customer)
 {
     var p = new DynamicParameters();
     p.Add("CustomerId", customer.CustomerId);
     return _dbConnection.Connection.Execute("Customer_Delete", p, commandType: CommandType.StoredProcedure) > 0;
 }