Exemplo n.º 1
0
        public IActionResult RegistrySpentTime(string userId, string projectId, string taskId, SpentTimeRegistry time)
        {
            try
            {
                var task = _taskBll.GetTaksDetail(userId, projectId, taskId);

                if (task == null)
                {
                    return(NotFound());
                }
                else
                {
                    _taskBll.RegistrySpentTime(userId, taskId, time);
                    return(NoContent());
                }
            }
            catch (Exception ex)
            {
                return(StatusCode(500));
            }
        }