public static DAL.App.DTO.FoodItemDepletedReport MapFromBLL(BLL.App.DTO.FoodItemDepletedReport foodItemDepletedReport) { var res = foodItemDepletedReport == null ? null : new DAL.App.DTO.FoodItemDepletedReport { Id = foodItemDepletedReport.Id, Timestamp = foodItemDepletedReport.Timestamp, FoodItem = FoodItemMapper.MapFromBLL(foodItemDepletedReport.FoodItem), FoodItemId = foodItemDepletedReport.FoodItemId, AppUserId = foodItemDepletedReport.AppUserId }; return(res); }
public static DAL.App.DTO.FoodItemTag MapFromBLL(BLL.App.DTO.FoodItemTag foodItemTag) { var res = foodItemTag == null ? null : new DAL.App.DTO.FoodItemTag { Id = foodItemTag.Id, FoodItem = FoodItemMapper.MapFromBLL(foodItemTag.FoodItem), FoodItemId = foodItemTag.FoodItemId, FoodTag = FoodTagMapper.MapFromBLL(foodItemTag.FoodTag), FoodTagId = foodItemTag.FoodTagId }; return(res); }
public static DAL.App.DTO.Rating MapFromBLL(BLL.App.DTO.Rating rating) { var res = rating == null ? null : new DAL.App.DTO.Rating { Id = rating.Id, Timestamp = rating.Timestamp, RatingValue = rating.RatingValue, FoodItem = FoodItemMapper.MapFromBLL(rating.FoodItem), FoodItemId = rating.FoodItemId, AppUserId = rating.AppUserId }; return(res); }
public static DAL.App.DTO.Comment MapFromBLL(BLL.App.DTO.Comment comment) { var res = comment == null ? null : new DAL.App.DTO.Comment { Id = comment.Id, Timestamp = comment.Timestamp, CommentValue = comment.CommentValue, FoodItem = FoodItemMapper.MapFromBLL(comment.FoodItem), FoodItemId = comment.FoodItemId, AppUserId = comment.AppUserId, AppUser = AppUserMapper.MapFromBLL(comment.AppUser) }; return(res); }