public void Save(string adUser) { try { adUser = _config.DomainUser + adUser; var response = _userRole.Save(new Authorization.Bll.Models.UserRoleViewModel { AdUser = adUser, RoleList = new List <int> { 2, 6 } }); Console.WriteLine(response); } catch (Exception ex) { Assert.True(false, ex.Message); } }
public IActionResult Save([FromBody] UserRoleViewModel model) { return(Ok(_userRole.Save(model))); }