public bool Save(Designation designation)
        {
            if (IsNameExists(designation.Name))
            {
                throw new Exception("Sorry!!!Designation Already Exists");
            }

            return(designationGateway.Save(designation) > 0);
        }
Esempio n. 2
0
 public string Save(Designation aDesignation)
 {
     if (gateway.Save(aDesignation) >= 0)
     {
         return("Saved successfully");
     }
     else
     {
         return("Saved Failed.");
     }
 }