public ActionResult ReadViewModel() { var vm = new ApiViewModel(); vm.Id = 1; vm.FruitId = 102; vm.FruitName = "Orange"; return(Json(new[] { vm })); }
public ActionResult UpdateViewModel(ApiViewModel vm) { return(Json(new[] { vm })); }
public ActionResult ReadViewModel() { var vm = new ApiViewModel(); vm.Id = 1; vm.FruitId = 102; vm.FruitName = "Orange"; return(Json(new[] { vm })); }
public ActionResult UpdateViewModel(ApiViewModel vm) { return(Json(new[] { vm })); }