public ActionResult save() { CloudCode.Domain.Customer cus = new CloudCode.Domain.Customer(); // cus.Id = "Cloud"; string strCus = this.CustomerService.save(cus); return Json(strCus, JsonRequestBehavior.AllowGet); }
public CustomerViewModel() { Customer = new Customer(); Customers = new List<Customer>(); ReturnMessage = new List<String>(); ValidationErrors = new Hashtable(); TotalCustomers = 0; }
public string save(Customer customer) { return this.CustomerDao.save(customer); }
public string save(Customer customer) { return this.SessionFactory.GetCurrentSession().Save(customer).ToString(); }
public ActionResult get() { CloudCode.Domain.Customer cus = new CloudCode.Domain.Customer(); cus = this.CustomerService.Get("ALFKI"); return Json(cus, JsonRequestBehavior.AllowGet); }