public ActionResult Create(JsonHeader collection)
        {
            Dictionary <string, string> headerDictionary  = WebHelper.JsonToDictionary(collection.Row);
            JsonResultMessage           jsonResultMessage = new JsonResultMessage();
            MonedaDTO monedaDTO = new MonedaDTO();

            try
            {
                if (collection.EditAction == EditActionConstant.EDIT)
                {
                    monedaDTO.MonedaId = Convert.ToInt32(headerDictionary["MonedaId"]);
                }

                monedaDTO.Codigo  = headerDictionary["Codigo"].ToString().Trim();
                monedaDTO.Nombre  = headerDictionary["Nombre"].ToString().Trim();
                monedaDTO.Simbolo = headerDictionary["Simbolo"].ToString().Trim();
                monedaDTO.Estado  = EstadoConstante.ACTIVO;


                if (collection.EditAction == EditActionConstant.NEW)
                {
                    monedaService.Create(monedaDTO);
                }
                else
                {
                    monedaService.Update(monedaDTO);
                }

                jsonResultMessage.message = "Moneda grabado satifactoriamente.";
            }
            catch (Exception ex)
            {
                jsonResultMessage.success = false;
                jsonResultMessage.message = ex.Message;
                throw ex;
            }
            return(Json(jsonResultMessage));
        }