예제 #1
0
        public ActionResult EditDetails(Client client)
        {
            DynamicParameters param = new DynamicParameters();

            param.Add("@ID", client.ID);
            param.Add("@name", client.Name);
            param.Add("@city", client.City);
            param.Add("@phoneNumber", client.PhoneNumber);
            param.Add("@address", client.Address);
            param.Add("@dob", client.DOB);
            ClientModel.ExecuteWithoutReturn("spEditClientDetails", param);
            return(RedirectToAction("Viewdata"));
        }