public int DeleteRole(int RoleId) { string sql = "delete from User_Role where RoleId =@0"; int actual = _db.Delete <UserRole>(sql, RoleId); return(actual); }
public bool TerminateSession(string Username) { string sql = "delete from User_Tracking where UserName =@0"; var actual = _db.Delete <UserTracking>(sql, Username); if (actual != 0) { return(true); } else { return(false); } }