public static Post ToEntity(this PostViewModel model) { return(model.MapTo <PostViewModel, Post>()); }