Esempio n. 1
0
        public ActionResult Save([FromBody] JObject json)
        {
            var ar = JObject.Parse(json.ToString());
            //taskCh["userid"] = userInfo.UserId;
            //Console.WriteLine("Ovo je task: " + taskCh);
            var artist = ArtistDto.FromJson(ar);

            //var task = TaskDto.FromJson(json);
            Console.WriteLine(artist);
            _as.Save(artist);
            return(Ok());
        }
Esempio n. 2
0
        public void ArtistEdit([FromBody] JObject json)
        {
            var art = ArtistDto.FromJson(json);

            _as.ArtistEdit(art);
        }