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