public IActionResult Update(string id, Monitoria MonitoriaIn) { var Monitoria = _MonitoriaService.Get(id); if (Monitoria == null) { return(NotFound()); } _MonitoriaService.Update(id, MonitoriaIn); return(NoContent()); }
public IActionResult AtualizarAtributo([FromBody] Monitoria monitoria) { return(new OkObjectResult(new List <Monitoria>())); }
public IActionResult Criar([FromBody] Monitoria monitoria) { return(new OkObjectResult(new List <Monitoria>())); }
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); }