public static PermissionSystem.Models.User ToEntity(this UserViewModel model, PermissionSystem.Models.User entity) { return(model.MapTo(entity)); }
public static UserViewModel ToModel(this PermissionSystem.Models.User entity) { return(entity.MapTo <PermissionSystem.Models.User, UserViewModel>()); }