public IHttpActionResult Put([FromBody] AppRoleMatch appRole)
        {
            if (appRole.MatchRole == "")
                return BadRequest("Invalid SAP match Role ID data."); // return Request.CreateResponse(HttpStatusCode.BadRequest, "Group ID Can not be blank");

            var result = _action.EditObj(appRole);

            return CheckActionResult(result);
        }
        public void EditObj_MatchRoleWithPositionDescPending_ReturnSuccessafully()
        {
            //Arrange
            var expect = "Successfully";
            var para   = new AppRoleMatch()
            {
                Operate    = "Edit",
                UserID     = "tester",
                RoleID     = "admin",
                RoleType   = "PositionDesc",
                MatchDesc  = "Msgr. Fraser Insturctor - Adult Ed.",
                MatchRole  = "Teacher",
                MatchScope = "School"
            };

            //Act
            var result = _action.EditObj(para);

            //Assert
            Assert.AreEqual(expect, result, $" Update App role  test {result} . ");
        }
        public void EditObj_MatchRoleWithPositionDescPending_ReturnInvalidMessage()
        {
            //Arrange
            var para = new AppRoleMatch()
            {
                Operate    = "Edit",
                UserID     = "tester",
                RoleID     = "admin",
                RoleType   = "PositionDesc",
                MatchDesc  = "Msgr. Fraser Insturctor - Adult Ed. Not Exists Position Descrption",
                MatchRole  = "Teacher",
                MatchScope = "School"
            };
            var expect = para.MatchDesc + " does not exist in the system";

            //Act
            var result = _action.EditObj(para);

            //Assert
            Assert.AreEqual(expect, result, $" Update App role invailed role ID test {result} . ");
        }