public static Domain.Comment MapFromDAL(DAL.App.DTO.Comment comment) { var res = comment == null ? null : new Domain.Comment { Id = comment.Id, Timestamp = comment.Timestamp, CommentValue = comment.CommentValue, FoodItemId = comment.FoodItemId, AppUserId = comment.AppUserId }; return(res); }
public static externalDTO.Comment MapFromDAL(internalDTO.Comment comment) { var res = comment == null ? null : new externalDTO.Comment { Id = comment.Id, CommentTitle = comment.CommentTitle, CommentBody = comment.CommentBody, ProductId = comment.ProductId, ShopId = comment.ShopId, ProductName = comment.ProductName }; return(res); }