public ObservableCollection<AppRolModel> Download_AppRol(long LastModifiedDate, long ServerLastModifiedDate)
 {
     ObservableCollection<AppRolModel> result = new ObservableCollection<AppRolModel>();
     try
     {
         using (var repository = new AppRolRepository())
         {
             result = repository.GetAppRol(LastModifiedDate, ServerLastModifiedDate);
         }
     }
     catch (Exception)
     {
         ;
     }
     return result;
 }
 public string App_RolInsert(string KeySesion, string RolName, string IdPuntoMedicion)
 {
     string res = "";
     AppRolRepository RolInsert = new AppRolRepository();
     try
     {
         RolInsert.Rol_Insert(KeySesion, RolName, IdPuntoMedicion);
     }
     catch (Exception ex)
     {
         var err = ex.Message;
     }
     return res;
 }
        public ObservableCollection<AppRolModel> Download_AppRolSelec(string KeySesion)
        {
            ObservableCollection<AppRolModel> resultSet = new ObservableCollection<AppRolModel>();
            try
            {
                using(var repository = new AppRolRepository())
                {
                    resultSet = repository.Get_AppRolSelec(KeySesion);
                }
            }
            catch (Exception)
            {

                ;
            }
            return resultSet;
        }
 public string App_RolDelete(string keySesion, long IdRol)
 {
     string res = "";
     AppRolRepository RolDelete = new AppRolRepository();
     try
     {
         RolDelete.Rol_Delete(keySesion, IdRol);
     }
     catch (Exception ex)
     {
         var err = ex.Message;
     }
     return res;
 }
 public string App_RolUpdate(string KeySesion, long IdRol, string RolName, string IdPuntoMedicion)
 {
     string res = "";
     AppRolRepository RolUpdate = new AppRolRepository();
     try
     {
         RolUpdate.Rol_Update(KeySesion, IdRol, RolName, IdPuntoMedicion);
     }
     catch (Exception ex)
     {
         var err = ex.Message;
     }
     return res;
 }