public async Task <HoursRecord> AddSpentHoursToUserForProject(HoursRecordForCreation hoursRecord)
        {
            HoursRecord record = new HoursRecord();

            record.User = await userService.FindUser(hoursRecord.UserId);

            record.Project = await projectService.FindProject(hoursRecord.ProjectId);

            record.SpentHours = hoursRecord.Hours;
            db.HoursRecords.Add(record);
            await db.SaveChangesAsync();

            return(record);
        }
        public async Task <HoursRecord> GetRacord(int id)
        {
            HoursRecord record = await db.HoursRecords.Include(u => u.User).Include(p => p.Project).FirstOrDefaultAsync(r => r.Id == id);

            return(record);
        }