Exemple #1
0
        public IActionResult GetBoatDetails()
        {
            int userid = Convert.ToInt32(HttpContext.Session.GetString("UserId"));
            List <AddBoat.AddBoatDetails> mylist = new List <AddBoat.AddBoatDetails>();

            mylist = BusinessUser.boatList(userid);
            var jsonResult = new ContentResult
            {
                Content     = JsonConvert.SerializeObject(mylist),
                ContentType = "application/json"
            };

            return(jsonResult);
        }