public ActionResult EditarHora(LancamentoHora model) { _otfsLancamentoHoraService.AtualizarHora(model); var listarHoras = new ListaHorasViewModel { TaskId = model.TaskId, HorasLancadas = _otfsLancamentoHoraService.ListarHoras(model.TaskId) }; return View("ListarHoras", listarHoras); }
public ActionResult LancarHora(LancamentoHora model) { _otfsLancamentoHoraService.InserirLancamentoHora(model); return Redirect("~/Dashboard/Desenvolvedor"); }
public void InserirLancamentoHora(LancamentoHora lancamentoHora) { _otfsLancamentoHoraRepository.Inserir(lancamentoHora); }
public void AtualizarHora(LancamentoHora model) { _otfsLancamentoHoraRepository.Atualizar(model); }
public void Inserir(LancamentoHora model) { _dbContext.LancamentoHora.Add(model); _dbContext.SaveChanges(); }
public void Atualizar(LancamentoHora model) { _dbContext.Entry<LancamentoHora>(model).State = System.Data.Entity.EntityState.Modified; _dbContext.SaveChanges(); }