示例#1
0
 // GET: ClientUsers/Delete/5
 public ActionResult Delete(int id, bool?saveChangesError)
 {
     if (saveChangesError.GetValueOrDefault())
     {
         ViewBag.ErrorMessage = "Unable to save changes. Try again, and if the problem persists see your system administrator.";
     }
     return(View(CompanyCustomerMethods.GetItem(id)));
 }
示例#2
0
        // GET: CompanyCustomers/Edit/5
        public ActionResult Edit(int id)
        {
            CompanyCustomer companyCustomer = CompanyCustomerMethods.GetItem(id);

            if (companyCustomer == null)
            {
                return(HttpNotFound());
            }
            return(View(companyCustomer));
        }