public long AddRole(int ID, string roleName) { role r = new role { userid = ID, rolename = roleName }; return(dapperTools.Insert(r)); }
public long Insert(Users obj) { try { return(_dapper.Insert <Users>(obj)); } catch (Exception ex) { throw ex; } }
public long Insert(TEntity entity) { return(dapper.Insert <TEntity>(entity)); }