Esempio n. 1
0
        public ActionResult EditarHora(int id, string title)
        {
            var lancamentoHora = _otfsLancamentoHoraService.BuscarHoraPorId(id);

            var model = new LancamentoHoraViewModel
            {
                Id = lancamentoHora.Id,
                TaskId = lancamentoHora.TaskId,
                UserId = lancamentoHora.UserId,
                Data = lancamentoHora.Data,
                HoraTrabalhada = lancamentoHora.HoraTrabalhada,
                DataLancamento = lancamentoHora.DataLancamento,
                Historico = lancamentoHora.Historico,
                Title = title
            };

            return View(model);
        }
Esempio n. 2
0
        public ActionResult LancarHora(int taskId, string title)
        {
            var model = new LancamentoHoraViewModel
            {
                TaskId = taskId,
                UserId = this.UsuarioAutorizadoSession.Id,
                Data = DateTime.Today,
                DataLancamento = DateTime.Today,
                Title = title
            };

            return View(model);
        }