Пример #1
0
        public ActionResult Post([FromBody] Tareas value)
        {
            IList <Tareas> tareas = new List <Tareas>();

            tareas = (System.Collections.Generic.IList <REST_APi.Model.Tareas>)TareasRepository.Posttareas(value);
            return(this.Ok(tareas));
        }
Пример #2
0
        public Tareas create(Tareas entity)
        {
            Tareas tarea1 = new Tareas();

            tarea1 = TareasRepository.Posttareas(entity);
            return(tarea1);
        }