コード例 #1
0
        public ActionResult GetOneProduct(int id)
        {
            OwnerViewModel data = null;

            data = Service.GetOne(id);

            var newListToJson = new List <OwnerViewModel> {
                data
            };

            return(Json(SerializeJson(newListToJson), JsonRequestBehavior.AllowGet));
        }