Esempio n. 1
0
        public IActionResult Update(string id, Monitoria MonitoriaIn)
        {
            var Monitoria = _MonitoriaService.Get(id);

            if (Monitoria == null)
            {
                return(NotFound());
            }

            _MonitoriaService.Update(id, MonitoriaIn);

            return(NoContent());
        }
Esempio n. 2
0
 public IActionResult AtualizarAtributo([FromBody] Monitoria monitoria)
 {
     return(new OkObjectResult(new List <Monitoria>()));
 }
Esempio n. 3
0
 public IActionResult Criar([FromBody] Monitoria monitoria)
 {
     return(new OkObjectResult(new List <Monitoria>()));
 }
Esempio n. 4
0
        public ActionResult <Monitoria> Create(Monitoria Monitoria)
        {
            _MonitoriaService.Create(Monitoria);

            return(CreatedAtRoute("GetMonitoria", new { id = Monitoria.Id.ToString() }, Monitoria));
        }
 public void Remove(Monitoria MonitoriaIn) =>
 _Monitorias.DeleteOne(Monitoria => Monitoria.Id == MonitoriaIn.Id);
 public void Update(string id, Monitoria MonitoriaIn) =>
 _Monitorias.ReplaceOne(Monitoria => Monitoria.Id == id, MonitoriaIn);
 public Monitoria Create(Monitoria Monitoria)
 {
     _Monitorias.InsertOne(Monitoria);
     return(Monitoria);
 }