예제 #1
0
        public string UpdateTest(Test test)
        {
            bool isTestTypeExistsForOther = _testGateway.IsTestTypeExistsForOther(test);

            if (isTestTypeExistsForOther)
            {
                return("Test Type already exists! ");
            }
            var rowsAffected = _testGateway.Update(test);

            if (rowsAffected > 0)
            {
                return("Updated successfully");
            }

            return("Update Failed!");
        }