public static DAL.App.DTO.UserFavouriteProvider MapFromBLL(BLL.App.DTO.UserFavouriteProvider userFavouriteProvider)
        {
            var res = userFavouriteProvider == null ? null : new DAL.App.DTO.UserFavouriteProvider
            {
                Id         = userFavouriteProvider.Id,
                ProviderId = userFavouriteProvider.ProviderId,
                Provider   = ProviderMapper.MapFromBLL(userFavouriteProvider.Provider),
                AppUserId  = userFavouriteProvider.AppUserId
            };


            return(res);
        }
Ejemplo n.º 2
0
        public static DAL.App.DTO.FoodItem MapFromBLL(BLL.App.DTO.FoodItem foodItem)
        {
            var res = foodItem == null ? null : new DAL.App.DTO.FoodItem
            {
                Id             = foodItem.Id,
                ProviderId     = foodItem.ProviderId,
                Provider       = ProviderMapper.MapFromBLL(foodItem.Provider),
                DateStart      = foodItem.DateStart,
                DateEnd        = foodItem.DateEnd,
                FoodCategoryId = foodItem.FoodCategoryId,
                FoodCategory   = FoodCategoryMapper.MapFromBLL(foodItem.FoodCategory),
                NameEng        = foodItem.NameEng,
                NameEst        = foodItem.NameEst
            };


            return(res);
        }