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