public async Task <IActionResult> ReportHours(ViewModels.UserReportHoursViewModel viewModel) { if (string.IsNullOrEmpty(viewModel.ProjectId)) { return(BadRequest()); } if (string.IsNullOrEmpty(viewModel.UserId)) { return(BadRequest()); } await _projectsRepo.AddHoursToProjectWorkflowAsync(viewModel.ProjectId, viewModel.UserId, viewModel.ReportedHours); return(RedirectToAction(nameof(Projects), new { userId = viewModel.UserId })); }