Beispiel #1
0
        public JsonResult Add(TodoTask task)
        {
            try
            {
                data.AddTask(task);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }

            return(Json(task));
        }