Example #1
0
        /// <summary>
        /// Get customer details by id
        /// </summary>
        public JsonResult GetCustomerByID(string id)
        {
            CustomerModel     model         = new CustomerModel();
            CustomerViewModel responseModel = new CustomerViewModel();

            if (!String.IsNullOrWhiteSpace(id))
            {
                responseModel = model.GetCustomerByID(Convert.ToInt32(id));
            }
            return(Json(responseModel, JsonRequestBehavior.AllowGet));
        }