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