Esempio n. 1
0
        public JsonResult AddOrUpdate(int?id, TodoDto model)
        {
            if (ModelState.IsValid)
            {
                _todoService.AddOrSet(id, model);
            }

            return(Json(new Result {
                Success = true
            }));
        }