Пример #1
0
 public string Save(EnrollCourse enrollCourse)
 {
     if (enrollGateway.IsNameExsists(enrollCourse))
     {
         return("This Course Already Exist");
     }
     else
     {
         int rowAffect = enrollGateway.Save(enrollCourse);
         if (rowAffect > 0)
         {
             return("Save Successfuly");
         }
         else
         {
             return("Save Failed");
         }
     }
 }