public Models.Forum.Vote Convert(Database.Entities.Forum.Vote source, Models.Forum.Vote destination, ResolutionContext context) { return(new Models.Forum.Vote { Type = source.Type, ByNickName = source.User.NickNames.Current() ?? "anonymous" }); }
public Database.Entities.Forum.Vote Convert(Models.Forum.CRUD.Vote source, Database.Entities.Forum.Vote destination, ResolutionContext context) { return(new Database.Entities.Forum.Vote { Type = source.Type, PostId = source.PostId, CreatedByUserId = source.CreatedByUserId, Created = DateTime.Now }); }