예제 #1
0
        public IProgressItem GetStatus(string entityType)
        {
            EntityType entityTypeObj;

            if (string.IsNullOrEmpty(entityType))
            {
                throw new ArgumentException();
            }
            switch (entityType.ToLower())
            {
            case "contact":
                entityTypeObj = EntityType.Contact;
                break;

            case "opportunity":
                entityTypeObj = EntityType.Opportunity;
                break;

            case "case":
                entityTypeObj = EntityType.Case;
                break;

            case "task":
                entityTypeObj = EntityType.Task;
                break;

            default:
                throw new ArgumentException();
            }

            return(ImportFromCSV.GetStatus(entityTypeObj));
        }
 public IProgressItem GetStatus(EntityType entityType)
 {
     return(ImportFromCSV.GetStatus(entityType));
 }
 public IProgressItem GetStatus()
 {
     return(ImportFromCSV.GetStatus());
 }