private TimeLog MapToEntity(TimeLogDto dto)
        {
            if (dto == null)
            {
                throw new ArgumentNullException("TimeLogDto cannot be empty or null.");
            }

            return(new TimeLog
            {
                Type = dto.Type
            });
        }
 public void SaveTimeLog(TimeLogDto dto)
 {
     _unitOfWork.TimeLogs.Add(MapToEntity(dto));
     _unitOfWork.SaveChanges();
 }