Example #1
0
        public ActionResult SaveContact(ContactModel obj)
        {
            _contactApi = new ContactApi("https://control.mysupport247.net", "Mysupport247", "SwitchvoxAPI", "mH5219b2vri0KUa", "NovaramCred1");
            Contact _contact = new Contact()
            {
                FirstName         = obj.FirstName,
                LastName          = obj.LastName,
                NickName          = obj.NickName,
                Title             = obj.Title,
                Phone             = obj.Phone,
                Fax               = obj.Fax,
                Email             = obj.Email,
                Id                = 0,
                CompanyIdentifier = obj.companyIdentifier
            };
            var result = _contactApi.AddOrUpdateContact(_contact);



            return(RedirectToAction("Index", new { callerID = obj.Phone }));
        }