// GET: Availabilities
        public async Task <IActionResult> Index(Guid freelancerId)
        {
            List <Freelancer> freelancers = await _freelancerService.GetAllAsync();

            if (freelancerId == default)
            {
                freelancerId = freelancers.FirstOrDefault().Id;
            }
            List <ProjectVM>    projects       = _mapper.Map <List <ProjectVM> >(await _projectService.GetAllAsync());
            List <Availability> availabilities = await _availabilityService.GetAvailabilitiesByFreelancerIdAsync(freelancerId);

            var availabilitiesVM = PrepareAvailabilityVM(availabilities);

            ViewBag.Freelancers    = new SelectList(freelancers, "Id", "Name", freelancerId);
            ViewBag.FreelancerId   = freelancerId;
            ViewBag.Projects       = projects;
            ViewBag.Availabilities = availabilitiesVM;
            //
            return(View());
        }