public MV_Exception GuardarMunicipios(TBC_MUNICIPIO municipio, int idUsuario) { var result = new MV_Exception(); try { result = H_LogErrorEXC.resultToException(_context.SP_TBC_MUNICIPIO_Insert(municipio.ID_DEPARTAMENTO, municipio.COD_MUNICIPIO, municipio.NOMBRE, idUsuario).FirstOrDefault()); if (result.IDENTITY == null) { throw new Exception(result.ERROR_MESSAGE); } } catch (Exception e) { H_LogErrorEXC.GuardarRegistroLogError(e); } return(result); }