I am trying to call a method with arguments, but it doesn't work. I have this method:
 public class AllMethods
    {
       //method change state and status of entity objetivovisitacao for "Propagado"
        public static void changeStatus(Guid objetivoId, IOrganizationService service, int state)
        {
            SetStateRequest setStateRequest = new SetStateRequest
            {
                EntityMoniker = new EntityReference("statuscode", objetivoId),
                State = new OptionSetValue(0),
                Status = new OptionSetValue(911950001),
            };
            service.Execute(setStateRequest);
        }
    }
And I need to call that method, so I tried doing it this way:
  AllMethods.changeStatus();
But it's wrong. Can someone explain this so that I can better understand what I'm missing here?
 
     
     
     
     
    