public async Task <GetSingleWorkshopViewModel> GetById(Guid id) { if (id == null || Guid.Empty == id) { return(null); } var workshop = await workshopRepository.GetById(id); var viewmodel = mapper.Map <GetSingleWorkshopViewModel>(workshop); return(viewmodel); }