public AdEditModel GetAdAsEditModel(Guid id) { var entity = _repository.GetAdWithDetails(id); if (entity == null) { throw new Exception(LOCALIZATION_AD_NOT_FOUND); } return(AdMapper.MapToAdEditModel(entity)); }