public static Role ToModel(this RoleEditViewModel model) { return(new Role { ID = model.ID, Name = model.Name }); }
public void Post(ViewModels.RoleEditViewModel model) { RoleService.Add(model); }