public int AddUserAndRole([FromForm] AddUserAndRole model)
        {
            Base_User user = bll.GetUserList().Where(s => s.User_Name.Equals(model.User_Name)).FirstOrDefault();

            if (user == null)
            {
                return(0);
            }
            Base_RoleAndUser m = new Base_RoleAndUser()
            {
                Role_ID = model.Role_ID,
                User_ID = user.User_ID
            };

            return(bll.AddUserAndRole(m));
        }
 public int AddUserAndRole(Base_RoleAndUser model)
 {
     return(helper.AddData <Base_RoleAndUser>(model));
 }
 public int AddUserAndRole(Base_RoleAndUser model)
 {
     return(dal.AddUserAndRole(model));
 }