Im getting an error code when trying to call a method. - C#