public virtual ApiReplyResponseModel MapBOToModel( BOReply boReply) { var model = new ApiReplyResponseModel(); model.SetProperties(boReply.ReplyId, boReply.Content, boReply.Date, boReply.ReplierUserId, boReply.Time); return(model); }
public virtual BOReply MapEFToBO( Reply ef) { var bo = new BOReply(); bo.SetProperties( ef.ReplyId, ef.Content, ef.Date, ef.ReplierUserId, ef.Time); return(bo); }
public virtual Reply MapBOToEF( BOReply bo) { Reply efReply = new Reply(); efReply.SetProperties( bo.Content, bo.Date, bo.ReplierUserId, bo.ReplyId, bo.Time); return(efReply); }
public virtual BOReply MapModelToBO( int replyId, ApiReplyRequestModel model ) { BOReply boReply = new BOReply(); boReply.SetProperties( replyId, model.Content, model.Date, model.ReplierUserId, model.Time); return(boReply); }