예제 #1
0
 public Role AddRole(Role rolepost)
 {
     try
     {
         _rolepost.CreateEntity(rolepost);
         return(rolepost);
     }
     catch (Exception ce)
     {
         throw new Exception(ce.Message);
     }
 }
예제 #2
0
 public User AddUser(User userpost)
 {
     try
     {
         _userpost.CreateEntity(userpost);
         return(userpost);
     }
     catch (Exception ce)
     {
         throw new Exception(ce.Message);
     }
 }