Ejemplo n.º 1
0
        public async Task <IActionResult> Add(TaskModel model)
        {
            var status = await _taskFactory.PostObject($"api/task/", model);

            if (!status)
            {
                ViewData["Message"] = "Something wrong";
                return(View());
            }

            ViewData["MessageSuccess"] = "Task created";
            return(View());
        }