public static externalDTO.Comment MapFromBLL(internalDTO.Comment comment) { var res = comment == null ? null : new externalDTO.Comment() { Id = comment.Id, CommentTitle = comment.CommentTitle, CommentBody = comment.CommentBody, ProductId = comment.ProductId, ProductName = comment.ProductName, ShopId = comment.ShopId }; return(res); }
public static externalDTO.Comment MapFromBLL(internalDTO.Comment comment) { var res = comment == null ? null : new externalDTO.Comment { Id = comment.Id, Timestamp = comment.Timestamp, CommentValue = comment.CommentValue, FoodItemId = comment.FoodItemId, AppUserId = comment.AppUserId, AppUser = AppUserMapper.MapFromBLL(comment.AppUser) }; return(res); }