public ActionResult Create(JsonHeader collection)
        {
            Dictionary <string, string> headerDictionary  = WebHelper.JsonToDictionary(collection.Header);
            JsonResultMessage           jsonResultMessage = new JsonResultMessage();
            ContactoDTO contactoDTO = new ContactoDTO();

            try
            {
                contactoDTO.ContactoId              = Convert.ToInt32(headerDictionary["ContactoId"]);
                contactoDTO.AreaId                  = Convert.ToInt32(headerDictionary["AreaId"]);
                contactoDTO.NombreContacto          = headerDictionary["NombreContacto"].ToString();
                contactoDTO.NumeroDocumentoContacto = headerDictionary["NumeroDocumentoContacto"].ToString();
                contactoDTO.TelefonoContacto        = headerDictionary["TelefonoContacto"].ToString();
                contactoDTO.CelularContacto         = headerDictionary["CelularContacto"].ToString();
                contactoDTO.EmailContacto           = headerDictionary["EmailContacto"].ToString();
                contactoDTO.DireccionContacto       = headerDictionary["DireccionContacto"].ToString();

                if (collection.EditAction == EditActionConstant.NEW)
                {
                    contactoService.Create(contactoDTO);
                }
                else
                {
                    contactoService.Update(contactoDTO);
                }

                jsonResultMessage.message = "Contacto grabado satisfactoriamente.";
                return(Json(jsonResultMessage));
            }
            catch (Exception ex)
            {
                jsonResultMessage.success = false;
                jsonResultMessage.message = ex.Message;
            }
            return(Json(jsonResultMessage));
        }